#include "Card.h"
#include <iostream>
#include "Deck.h"
#include "Player.h"

using namespace std;


Card::Card()
{
    flower=-1;
    number=-1;


}

ostream &operator<<(ostream &output, const Card &card)
{
    if(card.flower==0)
    output << "Club.";
    else if (card.flower==1)
    output << "Diamond.";
    else if (card.flower==2)
    output << "Heart.";
    else if (card.flower==3)
    output << "Spade.";

    if(card.number != -1)
    output << card.number << " ";



}


const Card &Card::operator=(int a)
{
    number = a;
    flower = a;
    return *this;



}
